﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script type="text/javascript" src="00.jquery-2.0.3.js"></script>
</head>
<body>
    <div data-title="div1"></div>
    <div data-title="div2"></div>
    <script type="text/javascript">
        $(function () {
            var fn = [];
            for (var i = 0 ; i < 10 ; i++) {
                fn[i] = function () {
                    alert(i);
                }
            }
            $.queue($("div")[0], "test", fn[1]);
            $.queue($("div")[0], "test", fn[2]);
            $.queue($("div")[0], "test", fn[3]);

            $.dequeue($("div")[0], "test");
            $.dequeue($("div")[0], "test");
            $.dequeue($("div")[0], "test");
        });
    </script>
</body>
</html>
